﻿<%@ Page Title="原始申请单" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="OriginalApplicationDetail.aspx.cs" Inherits="WXYW.ApplicationDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <asp:Label ID="titleLbl" runat="server" Text="客服中心RMA服务原始申请单 "></asp:Label>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
    <img src="image/operateicon/print.gif" alt="" />
        <a onclick="preview()" href="#">打印</a>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div align="right" style="width: 100%; margin-bottom: 10px; margin-right:20px;">        
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:HyperLink ID="returnHyperLink" runat="server" NavigateUrl="~/AllApplication.aspx">返回</asp:HyperLink>
    </div>
    <!--startprint-->
    <table width="100%" border="0px" cellpadding="0px" cellspacing="0px">
        <tr style="height: 25px">
            <td style="width: 10%">
                <b>流水号:</b>
            </td>
            <td style="width: 30%">
                <asp:Label ID="runningNumberLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td style="width: 10%">
            </td>
            <td style="width: 10%">
                <b>当前状态:</b>
            </td>
            <td style="width: 30%">
                <asp:Label ID="statusLabel" runat="server"  Width="100%"></asp:Label>
            </td>
            <td style="width: 10%">
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>用户信息</b>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                申请人：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="contactLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                公司名称：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="companyLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                电话：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="phoneNumberLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                手机号码：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="cellPhoneLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                传真：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="faxLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                通迅地址：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="addressLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                电子邮件：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="emailLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                代理商：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="agentLabel" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                申请日期：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applyTimeLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                收货日期：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="receiveTimeLabel" runat="server" Width="100%"></asp:Label>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                完成日期：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="completeTimeLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                发货日期：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="sendTimeLabel" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px; ">
                <b>产品信息</b>
            </td>
        </tr>
        <tr style="height: 15px">
            <td colspan="6">
            </td>
        </tr>
    </table>
    <asp:GridView ID="productGridView" runat="server" AutoGenerateColumns="False" CssClass="tableList"
        Width="100%" onrowdatabound="productGridView_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品型号">
                <ItemTemplate>
                    <%#Eval("ProductType.ProductTypeName")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="序列号" DataField="ProductSerialNumber" >
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="版本号" DataField="ProductVersionNumber" >
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="数量" DataField="ProductCount" >
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="故障现象描述">
                <ItemTemplate>
                    <asp:TextBox ID="Label1" runat="server" 
                        Text='<%# Bind("ProductProblemDescription") %>' TextMode="MultiLine" 
                    ReadOnly="true" Width="195px" Rows="1" CssClass="NOBorderTxtBox"></asp:TextBox>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" 
                        Text='<%# Bind("ProductProblemDescription") %>'></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Wrap="False" Width="200px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="外观及附件" DataField="ProductAppearance" >
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="购买日期">
                <ItemTemplate>
                    <%#(Convert.ToDateTime(Eval("ProductPurchaseDateTime"))).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" Wrap="False" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <!--endprint-->
</asp:Content>
